{# app/Resources/views/layout.html.twig #}
<!DOCTYPE html>
<html>
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>{% block title %}Admin D3{% endblock %}</title>
		{% block stylesheets %}
		<link rel="stylesheet" href="{{ asset('css/bootstrap.css') }}" type="text/css" />
		<link rel="stylesheet" href="{{ asset('bundles/d3hdvdiablo3/css/admin.css') }}" type="text/css" />
		<link href="css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css">
		<style> 

			body {
			  padding-top: 60px; 
			}
		</style>
		
		{% endblock %}
		{% block javascripts %}
		{# Ajoutez ces javascripts si vous comptez vous servir desfonctionnalités du bootstrap Twitter #}
			<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
			
			
			<script type="text/javascript" src="{{ asset('js/bootstrap.js')}}"></script>
			
		{% endblock %}
	</head>
	<body>
<nav class="navbar navbar-fixed-top">
  <div class="navbar-inner">
    <div class="container">
      <ul class="nav">
	<li><a class="brand" href="{{ path('D3hdv_diablo3_admin') }}">Admin Diablo 3 Beta 0.1</a></li>
        <li class="dropdown"> <a class="dropdown-toggle" data-toggle="dropdown" href="#">Comptes D3<b class="caret"></b> </a>
          <ul class="dropdown-menu">
            <li><a href="{{ path('D3hdv_admin_voir_comptes') }}">Liste des Comptes Diablo3</a></li>
            <li><a href="{{ path('D3hdv_admin_generer_compte') }}">Generer Comptes Diablo3</a></li>
          </ul>
        </li>
	<li class="dropdown"> <a class="dropdown-toggle" data-toggle="dropdown" href="#">Objets D3<b class="caret"></b> </a>
          <ul class="dropdown-menu">
            <li><a href="{{ path('D3hdv_admin_voir_objets') }}">Liste des Objets</a></li>
            <li><a href="{{ path('D3hdv_admin_generer_objet') }}">Generer Objets</a></li>
          </ul>
        </li>
	<li class="dropdown"> <a class="dropdown-toggle" data-toggle="dropdown" href="#">Objets Modele D3<b class="caret"></b> </a>
          <ul class="dropdown-menu">
            <li><a href="{{ path('D3hdv_admin_voir_objets_modele') }}">Liste des Modeles d'objets</a></li>
            <li><a href="{{ path('D3hdv_admin_ajouter_objet_modele') }}">Ajouter Modeles d'objets</a></li>
          </ul>
        </li>
	<li>
	
	</li>
      </ul>
	
    </div>
	{% if is_granted('ROLE_ADMIN_D3') %}
		{% if app.user is defined %}
			<div style="float:right;padding-right: 25%; "><i class="icon-user"></i> {{ app.user.username }} connecté <a  href="{{ path('_security_logout_admin') }}" ><i class="icon-off" ></i></a></div>
		{% endif %}
	{% endif %}
  </div>
</nav>
		   
		 <!-- </div>-->
		<div class="container" id="moncentre">
			
			
			<div class="row-fluid">
				<div id="content" class="span12">
				{% block body %}
				{% endblock %}
				</div>
			</div>
			<hr><footer><p>Team Miage</p></footer>
		</div>
		
	</body>
</html>
